package nc.impl.single.pub;

import nc.bs.dao.BaseDAO;
import nc.itf.single.pub.IPrivateUtilMaintain;
import nc.vo.pub.BusinessException;
import nc.vo.pub.SuperVO;

public class PrivateUtilMaintainImpl implements IPrivateUtilMaintain{

	@Override
	public String executeInsert__RequiresNew(SuperVO vo) throws BusinessException {
		BaseDAO dao = new BaseDAO();
		return dao.insertVO(vo);
	}

	@Override
	public int executeUpdate__RequiresNew(SuperVO vo) throws BusinessException {
		
		BaseDAO dao = new BaseDAO();
		return dao.updateVO(vo);
	}
	
	@Override
	public String[] executeInsert__RequiresNew(SuperVO[] vos) throws BusinessException {
		BaseDAO dao = new BaseDAO();
		return dao.insertVOArray(vos);
	}

	@Override
	public int executeUpdate__RequiresNew(SuperVO[] vos) throws BusinessException {
		BaseDAO dao = new BaseDAO();
		return dao.updateVOArray(vos);
	}
}
